package com.bree.erp.service;

import java.util.Collection;
import java.util.List;

import com.bree.erp.entity.Group;
import com.bree.erp.entity.GroupType;
import com.bree.erp.entity.User;

public interface GroupService extends Crud<Group, Long> {
	
	Group create(User user, GroupType groupid);
	Group read(Long id);
	Group update(Long id, User user, GroupType groupid);
	void delete(Group group);
	
	List<Group> list();
	Collection<Group> findByGroupType(GroupType type);
}
